﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using Business.Entities;
using Data.Database;

namespace Testing
{
    public partial class Form1 : Form
    {
        public Form1()
        {
            InitializeComponent();
            this.dataGridView1.DataSource = this.RecuperarUsuarios();
        }

        public IList<Usuario> RecuperarUsuarios()
        {
            List<Usuario> usuarios = (List<Usuario>)UsuarioData.GetAll();
            return usuarios;
        }
    }
}
